package com.yxzc.chapter02.unionnothing

/**
 *
 * @author wu
 * @create 2021-09-01-11:28 
 */
object UnionNullNothingDemo {
  def main(args: Array[String]): Unit = {
    var res = sayHello()
    println("res = " + res)

    var dag: dog = null
    var ma = "carzy" * 3
    var num = 10
    println("ma = " + ma)
    var stirng = "hello"
    println(stirng.take(1))
    println(stirng.reverse.take(1))

    var numberh = stirng.indexOf("h")
    var numbero = stirng.indexOf("o")
    var a = stirng.charAt(numberh)
    var b = stirng.charAt(numbero)
    println("number = " + a + " numbero = " + b)
    var number1: Int = 10 * 3.5.toInt + 6 * 1.5.toInt
    println(number1)
    var `true` = "12.5"


  }


  def sayHello(): Null = {
    return null
  }

  class dog {

  }

}
